How can I simplify the null check in this jQuery function

join shbcf.ru